<template>
	<view class="page" style="padding-top: 104rpx;">
		<view class="header">
			<image @click="back" class="back" src="../../static/tian/back.png" mode=""></image>
			<view class="text">{{$t('first.title79')}}</view>
			<view></view>
		</view>
		<view class="con">
			<view class="title">{{$t('first.title80')}}</view>
			<view class="inputList">
				<view class="mnemonicWords" v-for="(item,index) in list" :key="index">{{item}}</view>
			</view>
			<view class="title1">{{$t('first.title81')}}::</view>
			<view class="title1">•{{$t('first.title82')}}</view>
			<view class="title1">•{{$t('first.title83')}}</view>
			<view class="title1">•{{$t('first.title84')}}</view>
			<view class="title1">•{{$t('first.title85')}}</view>
			<view class="btn" @click="gologin">{{$t('first.title86')}}</view>
			<view class="title2"  @click="copy(string)">{{$t('first.title87')}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				list:[],
				string:''
			}
		},
		onLoad(e) {
			this.string = e.ci;
			this.list = e.ci.split(',');
		},
		methods:{
			copy(value){
				uni.setClipboardData({
					data:value,//要被复制的内容
					success:()=>{//复制成功的回调函数
						uni.showToast({//提示
							title:'OK'
						})
					}
				});
			},
			back(){
				uni.navigateBack()
			},
			gologin(){
				if(uni.getStorageSync('userinfo')){
					uni.navigateTo({
						url:'/pages/index/index'
					})
				}else{
					uni.navigateTo({
						url:'./login'
					})
				}
				
			}
		}
	}
</script>

<style scoped>
	*{
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}
	.page{
		width: 100%;
		height: 100%;
		min-height: 100vh;
		background-color: #ecf0f5;
	}
	.header{
		width: 100%;
		height: 104rpx;
		padding: 20rpx;
		position: fixed;
		background-color: #ecf0f5;
		display: flex;
		top: 0;
		left: 0;
		align-items: center;
		justify-content: space-between;
		z-index: 999;
	}
	.back{
		width: 48rpx;
		height: 48rpx;
	}
	.header .text{
		font-size: 36rpx;
		font-family: PingFangSC-Medium,PingFang SC;
		font-weight: 600;
		color: #222;
	}
	.con{
		padding: 40rpx;
		box-sizing: border-box;
	}
	.title{
		font-size: 28rpx;
		font-family: PingFangSC-Regular,PingFang SC;
		font-weight: 500;
		color: #686868;
		line-height: 42rpx;
		margin-bottom: 40rpx;
		letter-spacing: 2rpx;
	}
	.inputList{
		width: 100%;
		height: 460rpx;
		background: #fff;
		border-radius: 8rpx;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		padding: 20rpx 20rpx 0 20rpx;
		box-sizing: border-box;
		margin-bottom: 70rpx;
	}
	.mnemonicWords{
		width: 30%;
		height: 80rpx;
		line-height: 80rpx;
		border: 2rpx solid transparent;
		background-color: #ecf0f5;
		margin-bottom: 18rpx;
		font-size: 32rpx;
		text-align: center;
	}
	.title1{
		overflow-wrap: break-word;
		font-size: 28rpx;
		font-family: PingFangSC-Regular,PingFang SC;
		font-weight: 500;
		color: #e22b2b;
		letter-spacing: 2rpx;
	}
	.btn{
		margin-top: 132rpx;
		width: 100%;
		height: 96rpx;
		background: #ffb105;
		border-radius: 50rpx;
		text-align: center;
		line-height: 96rpx;
		font-size: 36rpx;
		font-family: PingFangSC-Semibold,PingFang SC;
		font-weight: 600;
		color: #000;
		margin-bottom: 20rpx;
	}
	.title2{
		text-align: center;
		font-size: 28rpx;
		font-family: PingFangSC-Medium,PingFang SC;
		font-weight: 600;
		color: #ffb105;
		letter-spacing: 4rpx;
	}
</style>